package cn.hyy.hrm.impl;

import cn.hyy.basic.util.AjaxResult;
import cn.hyy.hrm.RedisClient;
import org.springframework.stereotype.Component;

/**
 * fallback
 */
@Component
public class RedisClientImpl implements RedisClient {
    @Override
    public AjaxResult setStrEX(String key, String value, Integer seconds) {
        return null;
    }

    @Override
    public AjaxResult setStr(String key, String value) {
        return AjaxResult.me().setSuccess(false).setMessage("系统异常!");
    }

    @Override
    public AjaxResult getStr(String key) {
        return AjaxResult.me().setSuccess(false).setMessage("系统异常!");
    }

    @Override
    public AjaxResult exists(String key) {
        return null;
    }
}
